If an error condition occurs, this routine returns an integer
value indicating the type of error. Possible return values are as
follows:
Return Description
0 Successful completion.
[EBUSY] The object being referenced by cond is being
referenced by another thread that is currently
executing a
tis_cond_wait() on the condition variable specified
in cond. (This error can only occur when threads are
present.)
[EINVAL] The value specified by cond is not a valid condition
variable.